package com.ttl.bc.stock.request2.action;



import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

@SuppressWarnings("serial")
public class BCStkIssue2Form extends ActionForm {
	
	private String 	docNo;			//เลขที่เอกสาร
	
	private String  docDate;
	

	private String 	orderNo;		//เลขที่ order
	private String	departCode;		//
	private String 	projectCode;
	private String 	projectName;
	private String 	issueType;
	private String 	issueName;
	private String 	personCode;
	private String 	myDescription;		
	
	private String	iTTL_deptPay;	//ฝ่ายผู้ชำระเงิน
	
	private String	itemCode1;
	private	String	shortName1;	//ไว้รับ code ttl2
	private String 	itemName1;
	private String 	whCode1;
	private String	shelfCode1;
	private String	shelfName1;
	private String 	unitCode1;
	private String 	unitName1;
	private String	qty1;
	private String	payQty1;	
	private String	division1;
	private String 	ittl_unitName1;
	private String	price1;
	private String	amount1;
	
	private String	itemCode2;					
	private	String	shortName2;
	private String 	itemName2;
	private String 	whCode2;
	private String	shelfCode2;
	private String	shelfName2;
	private String 	unitCode2;
	private String 	unitName2;
	private String	qty2;
	private String	payQty2;	
	private String	division2;
	private String 	ittl_unitName2;
	private String	price2;
	private String	amount2;
	
	private String	itemCode3;
	private	String	shortName3;
	private String 	itemName3;
	private String 	whCode3;
	private String	shelfCode3;
	private String	shelfName3;
	private String 	unitCode3;
	private String 	unitName3;
	private String	qty3;
	private String	payQty3;	
	private String	division3;
	private String 	ittl_unitName3;
	private String	price3;
	private String	amount3;
	
	private String	itemCode4;
	private	String	shortName4;
	private String 	itemName4;
	private String 	whCode4;
	private String	shelfCode4;
	private String	shelfName4;
	private String 	unitCode4;
	private String 	unitName4;
	private String	qty4;
	private String	payQty4;	
	private String	division4;
	private String 	ittl_unitName4;
	private String	price4;
	private String	amount4;
	
	private String	itemCode5;
	private	String	shortName5;
	private String 	itemName5;
	private String 	whCode5;
	private String	shelfCode5;
	private String	shelfName5;
	private String 	unitCode5;
	private String 	unitName5;
	private String	qty5;
	private String	payQty5;	
	private String	division5;	
	private String 	ittl_unitName5;


	private String	itemCode6;
	private	String	shortName6;
	private String 	itemName6;
	private String 	whCode6;
	private String	shelfCode6;
	private String	shelfName6;
	private String 	unitCode6;
	private String 	unitName6;
	private String	qty6;
	private String	payQty6;	
	private String	division6;	
	private String 	ittl_unitName6;
	
	private String	itemCode7;
	private	String	shortName7;
	private String 	itemName7;
	private String 	whCode7;
	private String	shelfCode7;
	private String	shelfName7;
	private String 	unitCode7;
	private String 	unitName7;
	private String	qty7;
	private String	payQty7;	
	private String	division7;	
	private String 	ittl_unitName7;	
	
	private String	itemCode8;
	private	String	shortName8;
	private String 	itemName8;
	private String 	whCode8;
	private String	shelfCode8;
	private String	shelfName8;
	private String 	unitCode8;
	private String 	unitName8;
	private String	qty8;
	private String	payQty8;	
	private String	division8;	
	private String 	ittl_unitName8;	
	
	private String	itemCode9;
	private	String	shortName9;
	private String 	itemName9;
	private String 	whCode9;
	private String	shelfCode9;
	private String	shelfName9;
	private String 	unitCode9;
	private String 	unitName9;
	private String	qty9;
	private String	payQty9;	
	private String	division9;	
	private String 	ittl_unitName9;
	
	


	public String getShortName1() {
		return shortName1;
	}

	public void setShortName1(String shortName1) {
		this.shortName1 = shortName1;
	}

	public String getShortName2() {
		return shortName2;
	}

	public void setShortName2(String shortName2) {
		this.shortName2 = shortName2;
	}

	public String getShortName3() {
		return shortName3;
	}

	public void setShortName3(String shortName3) {
		this.shortName3 = shortName3;
	}

	public String getShortName4() {
		return shortName4;
	}

	public void setShortName4(String shortName4) {
		this.shortName4 = shortName4;
	}

	public String getShortName5() {
		return shortName5;
	}

	public void setShortName5(String shortName5) {
		this.shortName5 = shortName5;
	}

	public String getShortName6() {
		return shortName6;
	}

	public void setShortName6(String shortName6) {
		this.shortName6 = shortName6;
	}

	public String getShortName7() {
		return shortName7;
	}

	public void setShortName7(String shortName7) {
		this.shortName7 = shortName7;
	}

	public String getShortName8() {
		return shortName8;
	}

	public void setShortName8(String shortName8) {
		this.shortName8 = shortName8;
	}

	public String getShortName9() {
		return shortName9;
	}

	public void setShortName9(String shortName9) {
		this.shortName9 = shortName9;
	}

	public String getPayQty1() {
		return payQty1;
	}

	public void setPayQty1(String payQty1) {
		this.payQty1 = payQty1;
	}

	public String getPayQty2() {
		return payQty2;
	}

	public void setPayQty2(String payQty2) {
		this.payQty2 = payQty2;
	}

	public String getPayQty3() {
		return payQty3;
	}

	public void setPayQty3(String payQty3) {
		this.payQty3 = payQty3;
	}

	public String getPayQty4() {
		return payQty4;
	}

	public void setPayQty4(String payQty4) {
		this.payQty4 = payQty4;
	}

	public String getPayQty5() {
		return payQty5;
	}

	public void setPayQty5(String payQty5) {
		this.payQty5 = payQty5;
	}

	public String getItemCode6() {
		return itemCode6;
	}

	public void setItemCode6(String itemCode6) {
		this.itemCode6 = itemCode6;
	}

	public String getItemName6() {
		return itemName6;
	}

	public void setItemName6(String itemName6) {
		this.itemName6 = itemName6;
	}

	public String getWhCode6() {
		return whCode6;
	}

	public void setWhCode6(String whCode6) {
		this.whCode6 = whCode6;
	}

	public String getShelfCode6() {
		return shelfCode6;
	}

	public void setShelfCode6(String shelfCode6) {
		this.shelfCode6 = shelfCode6;
	}

	public String getShelfName6() {
		return shelfName6;
	}

	public void setShelfName6(String shelfName6) {
		this.shelfName6 = shelfName6;
	}

	public String getUnitCode6() {
		return unitCode6;
	}

	public void setUnitCode6(String unitCode6) {
		this.unitCode6 = unitCode6;
	}

	public String getUnitName6() {
		return unitName6;
	}

	public void setUnitName6(String unitName6) {
		this.unitName6 = unitName6;
	}

	public String getQty6() {
		return qty6;
	}

	public void setQty6(String qty6) {
		this.qty6 = qty6;
	}

	public String getPayQty6() {
		return payQty6;
	}

	public void setPayQty6(String payQty6) {
		this.payQty6 = payQty6;
	}

	public String getDivision6() {
		return division6;
	}

	public void setDivision6(String division6) {
		this.division6 = division6;
	}

	public String getIttl_unitName6() {
		return ittl_unitName6;
	}

	public void setIttl_unitName6(String ittlUnitName6) {
		ittl_unitName6 = ittlUnitName6;
	}

	public String getItemCode7() {
		return itemCode7;
	}

	public void setItemCode7(String itemCode7) {
		this.itemCode7 = itemCode7;
	}

	public String getItemName7() {
		return itemName7;
	}

	public void setItemName7(String itemName7) {
		this.itemName7 = itemName7;
	}

	public String getWhCode7() {
		return whCode7;
	}

	public void setWhCode7(String whCode7) {
		this.whCode7 = whCode7;
	}

	public String getShelfCode7() {
		return shelfCode7;
	}

	public void setShelfCode7(String shelfCode7) {
		this.shelfCode7 = shelfCode7;
	}

	public String getShelfName7() {
		return shelfName7;
	}

	public void setShelfName7(String shelfName7) {
		this.shelfName7 = shelfName7;
	}

	public String getUnitCode7() {
		return unitCode7;
	}

	public void setUnitCode7(String unitCode7) {
		this.unitCode7 = unitCode7;
	}

	public String getUnitName7() {
		return unitName7;
	}

	public void setUnitName7(String unitName7) {
		this.unitName7 = unitName7;
	}

	public String getQty7() {
		return qty7;
	}

	public void setQty7(String qty7) {
		this.qty7 = qty7;
	}

	public String getPayQty7() {
		return payQty7;
	}

	public void setPayQty7(String payQty7) {
		this.payQty7 = payQty7;
	}

	public String getDivision7() {
		return division7;
	}

	public void setDivision7(String division7) {
		this.division7 = division7;
	}

	public String getIttl_unitName7() {
		return ittl_unitName7;
	}

	public void setIttl_unitName7(String ittlUnitName7) {
		ittl_unitName7 = ittlUnitName7;
	}

	public String getItemCode8() {
		return itemCode8;
	}

	public void setItemCode8(String itemCode8) {
		this.itemCode8 = itemCode8;
	}

	public String getItemName8() {
		return itemName8;
	}

	public void setItemName8(String itemName8) {
		this.itemName8 = itemName8;
	}

	public String getWhCode8() {
		return whCode8;
	}

	public void setWhCode8(String whCode8) {
		this.whCode8 = whCode8;
	}

	public String getShelfCode8() {
		return shelfCode8;
	}

	public void setShelfCode8(String shelfCode8) {
		this.shelfCode8 = shelfCode8;
	}

	public String getShelfName8() {
		return shelfName8;
	}

	public void setShelfName8(String shelfName8) {
		this.shelfName8 = shelfName8;
	}

	public String getUnitCode8() {
		return unitCode8;
	}

	public void setUnitCode8(String unitCode8) {
		this.unitCode8 = unitCode8;
	}

	public String getUnitName8() {
		return unitName8;
	}

	public void setUnitName8(String unitName8) {
		this.unitName8 = unitName8;
	}

	public String getQty8() {
		return qty8;
	}

	public void setQty8(String qty8) {
		this.qty8 = qty8;
	}

	public String getPayQty8() {
		return payQty8;
	}

	public void setPayQty8(String payQty8) {
		this.payQty8 = payQty8;
	}

	public String getDivision8() {
		return division8;
	}

	public void setDivision8(String division8) {
		this.division8 = division8;
	}

	public String getIttl_unitName8() {
		return ittl_unitName8;
	}

	public void setIttl_unitName8(String ittlUnitName8) {
		ittl_unitName8 = ittlUnitName8;
	}

	public String getItemCode9() {
		return itemCode9;
	}

	public void setItemCode9(String itemCode9) {
		this.itemCode9 = itemCode9;
	}

	public String getItemName9() {
		return itemName9;
	}

	public void setItemName9(String itemName9) {
		this.itemName9 = itemName9;
	}

	public String getWhCode9() {
		return whCode9;
	}

	public void setWhCode9(String whCode9) {
		this.whCode9 = whCode9;
	}

	public String getShelfCode9() {
		return shelfCode9;
	}

	public void setShelfCode9(String shelfCode9) {
		this.shelfCode9 = shelfCode9;
	}

	public String getShelfName9() {
		return shelfName9;
	}

	public void setShelfName9(String shelfName9) {
		this.shelfName9 = shelfName9;
	}

	public String getUnitCode9() {
		return unitCode9;
	}

	public void setUnitCode9(String unitCode9) {
		this.unitCode9 = unitCode9;
	}

	public String getUnitName9() {
		return unitName9;
	}

	public void setUnitName9(String unitName9) {
		this.unitName9 = unitName9;
	}

	public String getQty9() {
		return qty9;
	}

	public void setQty9(String qty9) {
		this.qty9 = qty9;
	}

	public String getPayQty9() {
		return payQty9;
	}

	public void setPayQty9(String payQty9) {
		this.payQty9 = payQty9;
	}

	public String getDivision9() {
		return division9;
	}

	public void setDivision9(String division9) {
		this.division9 = division9;
	}

	public String getIttl_unitName9() {
		return ittl_unitName9;
	}

	public void setIttl_unitName9(String ittlUnitName9) {
		ittl_unitName9 = ittlUnitName9;
	}

	public String getDocDate() {
		return docDate;
	}

	public void setDocDate(String docDate) {
		this.docDate = docDate;
	}
	
    public String getIttl_unitName1() {
		return ittl_unitName1;
	}

	public void setIttl_unitName1(String ittlUnitName1) {
		ittl_unitName1 = ittlUnitName1;
	}

	public String getIttl_unitName2() {
		return ittl_unitName2;
	}

	public void setIttl_unitName2(String ittlUnitName2) {
		ittl_unitName2 = ittlUnitName2;
	}

	public String getIttl_unitName3() {
		return ittl_unitName3;
	}

	public void setIttl_unitName3(String ittlUnitName3) {
		ittl_unitName3 = ittlUnitName3;
	}

	public String getIttl_unitName4() {
		return ittl_unitName4;
	}

	public void setIttl_unitName4(String ittlUnitName4) {
		ittl_unitName4 = ittlUnitName4;
	}

	public String getIttl_unitName5() {
		return ittl_unitName5;
	}

	public void setIttl_unitName5(String ittlUnitName5) {
		ittl_unitName5 = ittlUnitName5;
	}

	public String getDivision1() {
		return division1;
	}

	public void setDivision1(String division1) {
		this.division1 = division1;
	}

	public String getDivision2() {
		return division2;
	}

	public void setDivision2(String division2) {
		this.division2 = division2;
	}

	public String getDivision3() {
		return division3;
	}

	public void setDivision3(String division3) {
		this.division3 = division3;
	}

	public String getDivision4() {
		return division4;
	}

	public void setDivision4(String division4) {
		this.division4 = division4;
	}

	public String getDivision5() {
		return division5;
	}

	public void setDivision5(String division5) {
		this.division5 = division5;
	}

	public String getShelfName1() {
		return shelfName1;
	}

	public void setShelfName1(String shelfName1) {
		this.shelfName1 = shelfName1;
	}

	public String getShelfName2() {
		return shelfName2;
	}

	public void setShelfName2(String shelfName2) {
		this.shelfName2 = shelfName2;
	}

	public String getShelfName3() {
		return shelfName3;
	}

	public void setShelfName3(String shelfName3) {
		this.shelfName3 = shelfName3;
	}

	public String getShelfName4() {
		return shelfName4;
	}

	public void setShelfName4(String shelfName4) {
		this.shelfName4 = shelfName4;
	}

	public String getShelfName5() {
		return shelfName5;
	}

	public void setShelfName5(String shelfName5) {
		this.shelfName5 = shelfName5;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {

//    	System.out.println("###################   In validate   ##############");
//		String user 	 = (String)request.getSession().getAttribute("userName");		
//		String issueType = (String)request.getParameter("issueType");
//		String preDocNo  = (String)request.getSession().getAttribute("preDocNo");
//		    		    		
//		String issueTypeName = CommonUtils.getIssueType(Integer.valueOf(issueType));				
//		String docNo 		 = CommonUtils.getMaxDocNo(preDocNo);
//		
//		request.getSession().setAttribute("userName", user);
//		request.getSession().setAttribute("issueType", issueType);
//		request.getSession().setAttribute("issueTypeName", issueTypeName);
//		request.getSession().setAttribute("docNo", docNo);    	
//    	
//		setDocNo(docNo);
//		
//        ActionErrors errors = new ActionErrors();
//
//        if (isMissing(getDocNo())) {    		
//        	errors.add("DocNoMissing", new ActionMessage("value.required", "DocNo"));
//        } 
        return null;//errors;
    }
           
//	private boolean isMissing(String value) {		
//		return ((value==null) || (value.trim().equals("")));
//	}	
			
	public String getiTTL_deptPay() {
		return iTTL_deptPay;
	}

	public void setiTTL_deptPay(String iTTLDeptPay) {
		iTTL_deptPay = iTTLDeptPay;
	}

	public String getIssueName() {
		return issueName;
	}

	public void setIssueName(String issueName) {
		this.issueName = issueName;
	}

	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getMyDescription() {
		return myDescription;
	}
	public void setMyDescription(String myDescription) {
		this.myDescription = myDescription;
	}
	public String getDocNo() {
		return docNo;
	}
	public void setDocNo(String docNo) {
		this.docNo = docNo;
	}
	public String getDepartCode() {
		return departCode;
	}
	public void setDepartCode(String departCode) {
		this.departCode = departCode;
	}
	public String getProjectCode() {
		return projectCode;
	}
	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	public String getIssueType() {
		return issueType;
	}
	public void setIssueType(String issueType) {
		this.issueType = issueType;
	}
	public String getPersonCode() {
		return personCode;
	}
	public void setPersonCode(String personCode) {
		this.personCode = personCode;
	}
	public String getItemCode1() {
		return itemCode1;
	}
	public void setItemCode1(String itemCode1) {
		this.itemCode1 = itemCode1;
	}
	public String getItemName1() {
		return itemName1;
	}
	public void setItemName1(String itemName1) {
		this.itemName1 = itemName1;
	}
	public String getWhCode1() {
		return whCode1;
	}
	public void setWhCode1(String whCode1) {
		this.whCode1 = whCode1;
	}
	public String getShelfCode1() {
		return shelfCode1;
	}
	public void setShelfCode1(String shelfCode1) {
		this.shelfCode1 = shelfCode1;
	}
	public String getUnitCode1() {
		return unitCode1;
	}
	public void setUnitCode1(String unitCode1) {
		this.unitCode1 = unitCode1;
	}
	public String getUnitName1() {
		return unitName1;
	}
	public void setUnitName1(String unitName1) {
		this.unitName1 = unitName1;
	}
	public String getQty1() {
		return qty1;
	}
	public void setQty1(String qty1) {
		this.qty1 = qty1;
	}
	public String getItemCode2() {
		return itemCode2;
	}
	public void setItemCode2(String itemCode2) {
		this.itemCode2 = itemCode2;
	}
	public String getItemName2() {
		return itemName2;
	}
	public void setItemName2(String itemName2) {
		this.itemName2 = itemName2;
	}
	public String getWhCode2() {
		return whCode2;
	}
	public void setWhCode2(String whCode2) {
		this.whCode2 = whCode2;
	}
	public String getShelfCode2() {
		return shelfCode2;
	}
	public void setShelfCode2(String shelfCode2) {
		this.shelfCode2 = shelfCode2;
	}
	public String getUnitCode2() {
		return unitCode2;
	}
	public void setUnitCode2(String unitCode2) {
		this.unitCode2 = unitCode2;
	}
	public String getUnitName2() {
		return unitName2;
	}
	public void setUnitName2(String unitName2) {
		this.unitName2 = unitName2;
	}
	public String getQty2() {
		return qty2;
	}
	public void setQty2(String qty2) {
		this.qty2 = qty2;
	}
	public String getItemCode3() {
		return itemCode3;
	}
	public void setItemCode3(String itemCode3) {
		this.itemCode3 = itemCode3;
	}
	public String getItemName3() {
		return itemName3;
	}
	public void setItemName3(String itemName3) {
		this.itemName3 = itemName3;
	}
	public String getWhCode3() {
		return whCode3;
	}
	public void setWhCode3(String whCode3) {
		this.whCode3 = whCode3;
	}
	public String getShelfCode3() {
		return shelfCode3;
	}
	public void setShelfCode3(String shelfCode3) {
		this.shelfCode3 = shelfCode3;
	}
	public String getUnitCode3() {
		return unitCode3;
	}
	public void setUnitCode3(String unitCode3) {
		this.unitCode3 = unitCode3;
	}
	public String getUnitName3() {
		return unitName3;
	}
	public void setUnitName3(String unitName3) {
		this.unitName3 = unitName3;
	}
	public String getQty3() {
		return qty3;
	}
	public void setQty3(String qty3) {
		this.qty3 = qty3;
	}
	public String getItemCode4() {
		return itemCode4;
	}
	public void setItemCode4(String itemCode4) {
		this.itemCode4 = itemCode4;
	}
	public String getItemName4() {
		return itemName4;
	}
	public void setItemName4(String itemName4) {
		this.itemName4 = itemName4;
	}
	public String getWhCode4() {
		return whCode4;
	}
	public void setWhCode4(String whCode4) {
		this.whCode4 = whCode4;
	}
	public String getShelfCode4() {
		return shelfCode4;
	}
	public void setShelfCode4(String shelfCode4) {
		this.shelfCode4 = shelfCode4;
	}
	public String getUnitCode4() {
		return unitCode4;
	}
	public void setUnitCode4(String unitCode4) {
		this.unitCode4 = unitCode4;
	}
	public String getUnitName4() {
		return unitName4;
	}
	public void setUnitName4(String unitName4) {
		this.unitName4 = unitName4;
	}
	public String getQty4() {
		return qty4;
	}
	public void setQty4(String qty4) {
		this.qty4 = qty4;
	}
	public String getItemCode5() {
		return itemCode5;
	}
	public void setItemCode5(String itemCode5) {
		this.itemCode5 = itemCode5;
	}
	public String getItemName5() {
		return itemName5;
	}
	public void setItemName5(String itemName5) {
		this.itemName5 = itemName5;
	}
	public String getWhCode5() {
		return whCode5;
	}
	public void setWhCode5(String whCode5) {
		this.whCode5 = whCode5;
	}
	public String getShelfCode5() {
		return shelfCode5;
	}
	public void setShelfCode5(String shelfCode5) {
		this.shelfCode5 = shelfCode5;
	}
	public String getUnitCode5() {
		return unitCode5;
	}
	public void setUnitCode5(String unitCode5) {
		this.unitCode5 = unitCode5;
	}
	public String getUnitName5() {
		return unitName5;
	}
	public void setUnitName5(String unitName5) {
		this.unitName5 = unitName5;
	}
	public String getQty5() {
		return qty5;
	}
	public void setQty5(String qty5) {
		this.qty5 = qty5;
	}

	public String getPrice1() {
		return price1;
	}

	public void setPrice1(String price1) {
		this.price1 = price1;
	}

	public String getAmount1() {
		return amount1;
	}

	public void setAmount1(String amount1) {
		this.amount1 = amount1;
	}

	public String getPrice2() {
		return price2;
	}

	public void setPrice2(String price2) {
		this.price2 = price2;
	}

	public String getAmount2() {
		return amount2;
	}

	public void setAmount2(String amount2) {
		this.amount2 = amount2;
	}

	public String getPrice3() {
		return price3;
	}

	public void setPrice3(String price3) {
		this.price3 = price3;
	}

	public String getAmount3() {
		return amount3;
	}

	public void setAmount3(String amount3) {
		this.amount3 = amount3;
	}

	public String getPrice4() {
		return price4;
	}

	public void setPrice4(String price4) {
		this.price4 = price4;
	}

	public String getAmount4() {
		return amount4;
	}

	public void setAmount4(String amount4) {
		this.amount4 = amount4;
	}	
	
	
}
